<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ include file="/commons/pages/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div class="subtitle">
  <h3>分配表数据</h3>
</div>
<s:form action="AssignMeterData!list.action" method="post" id="query_form">
  <input type="hidden" name="selectBean.isAll" value="0" id="sb_isall"/>
  <table width="100%" border="0" cellpadding="5" cellspacing="0" class="subtbl">
    <tr>
      <td>分配表表号：
        <input name="selectBean.serious_num" type="text" class="webinput" size="20" value="<s:property value='selectBean.serious_num'/>"/></td>
      <td>集中器号：
        <input name="selectBean.jzq_num" type="text" class="webinput" size="20" value="<s:property value='selectBean.jzq_num'/>"/></td>
    </tr>
    <tr>
    	<td>所属分摊区域：
      	<select name="selectBean.area_id">
      		<option value="">--==请选择==--</option>
      		<s:iterator value="shareAreaList" var="cur">
      			 <option value="<s:property value='#cur.ID'/>" <s:if test="selectBean.area_id==#cur.ID">selected="selected"</s:if>><s:property value="#cur.AREA_NAME"/></option>
      		</s:iterator>
      	</select>
      	</td>
      	<td>抄表起始时间：
      	<input name="selectBean.start_date" type="text" class="webinput" size="25" value="<s:property value='selectBean.start_date'/>"  onclick="fPopCalendar(this);" readonly="readonly"/>
      	</td>
    </tr>
    <tr>
      <td><input name="button2" type="submit" class="websub" id="button2" value="查 询" />
        <input name="button_query_all" type="button" class="websub"  id="button3" value="查询全部" onclick="javascript:queryAll()"/></td>
    </tr>
  </table>
  <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
    <tr>
      <th width="5%">序号</th>
      <th width="10%">分配表表号</th>
      <th width="10%">集中表号</th>
      <th width="10%">读数</th>
      <th width="5%">背板温度</th>
      <th width="5%">前板温度</th>
      <th width="16%">读数对应时间</th>
      <th width="14%">抄表时间</th>
      <th width="8%">上传率</th>
      <th width="12%">操作</th>
    </tr>
    <s:iterator value="list" var="cur" status="vs">
      <tr align="center" <s:if test="#cur.DIFF_DAYS>=3"> style="color:red"</s:if>>
        <td><abean:counter write="true" /></td>
        <td><a href="BaseRoomInfo!viewByAssignNumber.action?serious_num=<s:property value="#cur.SERIOUS_NUM"/>"><s:property value="#cur.SERIOUS_NUM"/></a></td>
        <td><a href="AssignMeterData!view.action?id=<s:property value='#cur.ID'/>"><s:property value="#cur.JZQ_NUM"/></a></td>
        <td><s:property value="#cur.READ_NUM"/></td>
        <td><s:property value="#cur.BACK_TEMP"/></td>
        <td><s:property value="#cur.FROM_TEMP"/></td>
        <td><s:date name="#cur.READ_TIME" format="yyyy-MM-dd"/></td>
        <td><s:date name="#cur.RECORD_TIME" format="yyyy-MM-dd"/></td>
        <td>
        	<s:property value="#cur.READ_PERCENT"/>%
        </td>
        <td><a href="AssignMeterData!view.action?id=<s:property value='#cur.ID'/>">查看</a></td>
      </tr>
    </s:iterator>
    <abean:tablefill name="AssignMeterData" property="selectBean.pager" column="10"/>
  </table>
  <div id="showpage">
    <ahtml:pagination name="AssignMeterData" method="list" showsize="false" property="selectBean.pager"/>
  </div>
</s:form>
<script type="text/javascript">
function queryAll(){
	document.getElementById('sb_isall').value=1;
	document.forms["query_form"].submit();
}
</script>
</body>
</html>
